home *** CD-ROM | disk | FTP | other *** search
/ EnigmA Amiga Run 1999 March / EnigmA AMIGA RUN 35 (1999)(G.R. Edizioni)(IT)[!][issue 1999-03].iso / earcd / -archivi / -recent2 / ggdebug.lha / inline / ggdebug.h
C/C++ Source or Header  |  1999-03-11  |  1KB  |  58 lines

  1. /* Automatically generated header! Do not edit! */
  2.  
  3. #ifndef _INLINE_GGDEBUG_H
  4. #define _INLINE_GGDEBUG_H
  5.  
  6. #ifndef __INLINE_MACROS_H
  7. #include <inline/macros.h>
  8. #endif /* !__INLINE_MACROS_H */
  9. #include <stdarg.h>
  10.  
  11. #ifndef GGDEBUG_BASE_NAME
  12. #define GGDEBUG_BASE_NAME GGDebugBase
  13. #endif /* !GGDEBUG_BASE_NAME */
  14.  
  15. #define KCmpStr(string1, string2) \
  16.     LP2(0x1e, LONG, KCmpStr, STRPTR, string1, a0, STRPTR, string2, a1, \
  17.     , GGDEBUG_BASE_NAME)
  18.  
  19. #define KDoFmt(formatString, datastream, putChProc, putChData) \
  20.     LP4FP(0x24, APTR, KDoFmt, STRPTR, formatString, a0, STRPTR, datastream, a1, __fpt, putChProc, a2, APTR, putChData, a3, \
  21.     , GGDEBUG_BASE_NAME, void (*__fpt)())
  22.  
  23. #define KGetChar() \
  24.     LP0(0x2a, LONG, KGetChar, \
  25.     , GGDEBUG_BASE_NAME)
  26.  
  27. #define KMayGetChar() \
  28.     LP0(0x30, LONG, KMayGetChar, \
  29.     , GGDEBUG_BASE_NAME)
  30.  
  31. #define KPutChar(character) \
  32.     LP1(0x36, LONG, KPutChar, LONG, character, d0, \
  33.     , GGDEBUG_BASE_NAME)
  34.  
  35. #define KPutStr(string) \
  36.     LP1NR(0x3c, KPutStr, STRPTR, string, a0, \
  37.     , GGDEBUG_BASE_NAME)
  38.  
  39. #define VKPrintf(format, data) \
  40.     LP2(0x42, APTR, VKPrintf, STRPTR, format, a0, APTR, data, a1, \
  41.     , GGDEBUG_BASE_NAME)
  42.  
  43. #define KPrintf _KPrintf
  44.  
  45. static LONG _KPrintf(STRPTR format, ...)
  46. {
  47.     va_list ap;
  48.     LONG ret;
  49.  
  50.     va_start(ap,format);
  51.     ret=(LONG)VKPrintf(format,ap);
  52.     va_end(ap);
  53.  
  54.     return ret;
  55. }
  56.  
  57. #endif /* !_INLINE_GGDEBUG_H */
  58.